<!DOCTYPE html>
<html><head>
        <meta charset="utf-8">
    <title>ThinkPHP5.0</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="__STATIC__/admin/css/bootstrap.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/font-awesome.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__STATIC__/admin/css/beyond.css" rel="stylesheet" type="text/css">
    <link href="__STATIC__/admin/css/demo.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/typicons.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/animate.css" rel="stylesheet">
    <script type="text/javascript" src="__STATIC__/admin/js/jquery.min.js"></script>
    <script src="__STATIC__/admin/js/yu.js"></script>
</head>
<body>
    <!-- 头部 -->
    {include file="public:header" /} 
    <!-- /头部 -->
    
    <div class="main-container container-fluid">
        <div class="page-container">
            <!-- Page Sidebar -->
            {include file="public:left" /} 
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                                        <li>
                        <a href="#">系统</a>
                    </li>
                                        <li class="active">栏目管理</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<button type="button" tooltip="添加栏目" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = 'add'"> <i class="fa fa-plus"></i> 添加成绩
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
                <div class="flip-scroll">
                    <form action="" method="post" id="myform">
                        <table class="table table-bordered table-hover ">
                            <thead class="">
                                <tr >
                                <th class="text-center"><label>
                                        <input type="checkbox" >
                                        <span class="text"></span>
                                        </label</th>
                                    <th class="text-center" >ID</th>
                                    <!-- <th class="text-center" >排名</th> -->
                                    <th class="text-center"width="8%">姓名</th>
                                    <th class="text-center">学号</th>
                                    <th class="text-center" width="8%">
                                        年级
                                    </th>
                                    <th class="text-center" width="5%">班级</th>
                                    <th class="text-center">语文</th>
                                    <th class="text-center">数学</th>
                                    <th class="text-center">英语</th>
                                    <th class="text-center">物理</th>
                                    <th class="text-center">化学</th>
                                    <th class="text-center">生物</th>
                                    <th class="text-center">历史</th>
                                    <th class="text-center">地理</th>
                                    <th class="text-center">政治</th>
                                    <th class="text-center"width="5%">班级名次</th>
                                    <th class="text-center"width="5%">年级名次</th>
                                    <th class="text-center"width="5%">旗级名次</th>
                                    <th class="text-center" color="red"width="5%">总分</th>
                                    <th class="text-center"width="7%">平均分</th>
                                    <th class="text-center" width="20%">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                               {volist name="$stures" id="stu"}
                                    <tr >
                                     <td align="left">
                                        <label>
                                        <input type="checkbox">
                                        <span class="text"></span>
                                        </label>
                                        </td>
                                        <td align="center">{$stu.sid}</td>
                                       <!--  <td align="center" ><input name="" type="text" style="width:50px; text-align:center;font-weight: bold;color: #CC0000;" value="5"></td> -->
                                        <td align="center">{$stu.sname}</td>
                                        <td align="center">
                                       {$stu.xuehao}
                                        </td>
                                     <td align="center">
                                            {if condition="$stu['number'] eq 1"}
                                            一年级
                                            {elseif condition="$stu['number'] eq 2"}
                                            二年级
                                            {elseif condition="$stu['number'] eq 3"}
                                            三年级
                                            {elseif condition="$stu['number'] eq 4"}
                                            四年级
                                            {elseif condition="$stu['number'] eq 5"}
                                            五年级
                                            {elseif condition="$stu['number'] eq 6"}
                                            六年级
                                            {elseif condition="$stu['number'] eq 7"}
                                            初一
                                            {elseif condition="$stu['number'] eq 8"}
                                            初二
                                            {elseif condition="$stu['number'] eq 9"}
                                            初三
                                            {elseif condition="$stu['number'] eq 10"}
                                            高一
                                            {elseif condition="$stu['number'] eq 11"}
                                            高二
                                            {elseif condition="$stu['number'] eq 12"}
                                            高三
                                            {else}
                                            未知班级
                                            {/if}

                                     </td>
                                      <td align="center">{$stu.class}</td>
                                      <td align="center">{$stu.chinese}</td>
                                      <td align="center">{$stu.mathematics}</td>
                                      <td align="center">{$stu.english}</td>
                                      <td align="center">{$stu.physical}</td>
                                      <td align="center">{$stu.chemical}</td>
                                      <td align="center">{$stu.biology}</td>
                                      <td align="center">{$stu.historical}</td>
                                      <td align="center">{$stu.geography}</td>
                                      <td align="center">{$stu.politics}</td>
                                      <td align="center">{$stu.grades}</td>
                                      <td align="center">{$stu.rnking}</td>
                                      <td align="center">{$stu.county}</td>
                                      <td align="center"style="color: #FF0000;font-weight: bold;">{$stu.total}</td>
                                      <td align="center"style="color: rgb(34, 58, 157);font-weight: bold;">{$stu.average}</td>
                                

                                        <td align="center">
                                            <a href="{:url('edit',array('id'=>$stu['sid']))}" class="btn btn-primary btn-sm shiny">
                                                <i class="fa fa-edit"></i> 编辑
                                            </a>
                                            <a href="{:url('del',array('id'=>$stu['sid']))}" onClick="warning('确实要删除吗?删除后无法恢复，请谨慎操作', '')" class="btn btn-danger btn-sm shiny">
                                                <i class="fa fa-trash-o"></i> 删除
                                            </a>
                                        </td>
                                    </tr>
                            {/volist}
                                
                            </tbody>
                            
                        </table>
                        <a href="{:url('score/expUser')}" class="btn btn-sm  " style="margin-top: 10px;">√导出学生成绩表Excel</a>
                      <!--   <div><input class="btn btn-primary btn-sm shiny" style="margin-left:135px; margin-top:10px;" type="submit" value="排序" ></div -->
                    </form>
                </div>
                <div style="padding-top:10px;">
                {$stures->render()}
                </div>
                <div>
                                    </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
        </div>  
    </div>

        <!--Basic Scripts-->
    <script src="__STATIC__/admin/js/jquery_002.js"></script>
    <script src="__STATIC__/admin/js/bootstrap.js"></script>
    <script src="__STATIC__/admin/js/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__STATIC__/admin/js/beyond.js"></script>
    


</body></html>